package battleModel;

import java.awt.Point;
import java.awt.Rectangle;
import java.awt.geom.Rectangle2D;
import java.io.Serializable;

public class Perimeter implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private double leftX,upperY,width,height;
	
	public Perimeter(double x, double y, double width, double height){
		leftX=x;
		upperY=y;
		this.width=width;
		this.height=height;
	}

	public double getX(){
		return leftX;
	}
	
	public double getY(){
		return upperY;
	}
	
	public double getHeight(){
		return height;
	}
	
	public double getWidth(){
		return width;
	}
	 
	public Rectangle2D getRect(){
		Rectangle2D rect=new Rectangle((int)leftX, (int)upperY, (int)width, (int)height);
		return rect;
	}
}
